#ifndef __SM_UART_H_
#define __SM_UART_H_

#include "stdint.h"
#include "driver/uart.h"

typedef struct
{
    uart_port_t uart_num;
    int tx_io_num;
    int rx_io_num;
    int rts_io_num;
    int cts_io_num;
    uint32_t baud;
}sm_uart_obj;

void sm_uart_init(sm_uart_obj *obj);

#endif

